home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / pcbdiz12.zip / PCBTEST.BAT < prev   
DOS Batch File  |  1992-01-22  |  840b  |  42 lines

  1. @echo off
  2. if exist pcbpass.txt del pcbpass.txt
  3. if exist pcbfail.txt del pcbfail.txt
  4. if %@ext[%1]==gif goto gif
  5. if %@ext[%1]==zip goto zip
  6. if %@ext[%1]==arj goto zip
  7. if %@ext[%1]==lzh goto zip
  8. goto crc
  9.  
  10. :gif
  11. if %2 == test goto gift
  12. giftest %1 /A/F:%3/B:2 > PCBPASS.TXT
  13. if errorlevel == 25 goto badgif
  14. if errorlevel == 20 goto badgif
  15. if errorlevel == 10 goto end
  16. if errorlevel == 1 goto badgif
  17. goto end
  18.  
  19. :gift
  20. > PCBPASS.TXT
  21. giftest %1 /E/B:2/F:%3/M:321x201x16
  22. if not exist %1 goto badgif
  23. goto end
  24.  
  25. :badgif
  26. move PCBPASS.TXT PCBFAIL.TXT
  27. goto end
  28.  
  29. :zip
  30. ptest %1 ptest.cfg
  31. if %2 == test goto end
  32.  
  33. rem Add FILE_ID.DIZ files and file information.
  34. pcbdiz %1 %3 /AV/D/U/A:Tested with ZipLab 1.9b
  35.  
  36. :crc
  37. if exist pcbpass.txt del pcbpass.txt
  38. proecho 1 ~Adding %@name[%1] to CRC database...
  39. zdcsfc %1 %2 %3
  40.  
  41. :end
  42.